const Order = require('../../model/order/Order')

function list(req,res){

    Order.find({})
      .then((result)=>{
          if(result){
              res.json({
                  code:1,
                  msg: 'success',
                  data: result
              })
          }else{
              res.json({
                  code:0,
                  msg: '获取列表失败'
              })
          }
      })
  
}
module.exports = list